package com.behelpful.common.core.constants;

/**
 * 权鉴相关常量
 *
 * @author Alay
 * @date 2021-09-03 05:30
 * @since
 */
public interface SecurityConstant {

    /**
     * 认证信息前缀
     */
    String AUTHORIZATION_BASIC = "Basic ";

    /**
     * 刷新
     */
    String REFRESH_TOKEN = "refresh_token";

    /**
     * token 相关前缀
     */
    String TOKEN_PREFIX = "token:";

    /**
     * 角色前缀
     */
    String ROLE = "ROLE_";

    /**
     * Behelpful站内账号密码登录接口 URL
     */
    String USERNAME_LOGIN_URL = "/auth/login";

    /**
     * OAUTH URL
     */
    String OAUTH_TOKEN_URL = "/oauth/token";

    /**
     * 电话号码登录
     */
    String MOBILE_LOGIN_URL = "/auth/mobile";

    /**
     * 客户端模式
     */
    String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * JWT token签名 key
     */
    String JWT_TOKEN_SING_KEY = "behelpful@Asia";
}
